#include <iostream>
#include "life.h"

using namespace std;


int main()
{
    char sign;
    Life configuration;
    configuration.initialize();
    configuration.print();

    cout<<"Continue viewing new generations?"<<endl;
    cin>>sign;

    while(sign=='y')
    {
        configuration.update();
        configuration.print();

        cout<<"Continue viewing new generations?"<<endl;
        cin>>sign;
    }
    if(sign=='n')
    {
        configuration.print();
    }
    return 0;
}


